﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pulog.Models
{
    public interface ICommentRepository
    {
        #region Comments
        List<Comment> GetCommentstByPostSlug(PostRepository p);
        List<Comment> GetCommentsByPostId(int id);

        Comment GetCommentById(int id);
        
        // returns all comments
        List<Comment> GetCommentList();
        //PagedList<Post> GetPostList(int pageIndex, int pageSize);
        //PagedList<Post> GetPostList(int? year, int? month, int? day, int pageIndex, int pageSize);

        void InsertComment(Comment post);
        void UpdateComment(Comment post);
        void DeleteComment(Comment post);
        #endregion

        #region Settings
        //void SaveSetting(Setting s);
        //Setting GetSetting(string settingKey);
        #endregion
    }
}